<template>
  <div class="app-container">
    <el-form :model="queryParams" ref="queryForm" :inline="true" v-show="showSearch" label-width="68px">
       <el-form-item label="日期" prop="cDate">
                  <el-date-picker
                    v-model="queryParams.cDate"
                    type="date"
                    size="small"
                    value-format="yyyy-MM-dd"
                    @keyup.enter.native="handleQuery"
                    placeholder="请输入查询日期">
                  </el-date-picker>
                </el-form-item>


                <el-form-item>
                  <el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery">搜索</el-button>
                  <el-button icon="el-icon-refresh" size="mini" @click="resetQuery">重置</el-button>
                </el-form-item>
              </el-form>

    <el-row :gutter="10" class="mb8">
      <el-col :span="1.5">
        <el-button
          type="primary"
          plain
          icon="el-icon-plus"
          size="mini"
          @click="handleAdd"
          v-hasPermi="['scrb:cl:add']"
        >新增</el-button>
      </el-col>
      <el-col :span="1.5">
        <el-button
          type="success"
          plain
          icon="el-icon-edit"
          size="mini"
          :disabled="single"
          @click="handleUpdate"
          v-hasPermi="['scrb:cl:edit']"
        >修改</el-button>
      </el-col>
      <el-col :span="1.5">
        <el-button
          type="danger"
          plain
          icon="el-icon-delete"
          size="mini"
          :disabled="multiple"
          @click="handleDelete"
          v-hasPermi="['scrb:cl:remove']"
        >删除</el-button>
      </el-col>
      <el-col :span="1.5">
        <el-button
          type="warning"
          plain
          icon="el-icon-download"
          size="mini"
          @click="handleExport"
          v-hasPermi="['scrb:cl:export']"
        >导出</el-button>
      </el-col>
      <right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
    </el-row>

    <el-table v-loading="loading" :data="clList" @selection-change="handleSelectionChange">
      <el-table-column type="selection" width="55" align="center" />
      <el-table-column label="日期" align="center" prop="cDate" />
      <el-table-column label="炼焦工序全焦当日实际" align="center" prop="cLjgxQjDrSj" />
      <el-table-column label="炼焦工序全焦累计实际" align="center" prop="cLjgxQjLjSj" />
      <el-table-column label="炼焦工序冶金焦当日实际" align="center" prop="cLjgxYjjDrSj" />
      <el-table-column label="炼焦工序冶金焦累计实际" align="center" prop="cLjgxYjjLjSj" />
      <el-table-column label="炼焦工序煤焦油当日实际" align="center" prop="cLjgxMjyDrSj" />
      <el-table-column label="炼焦工序煤焦油累计实际" align="center" prop="cLjgxMjyLjSj" />
      <el-table-column label="炼焦工序硫酸铵当日实际" align="center" prop="cLjgxLsaDrSj" />
      <el-table-column label="炼焦工序硫酸铵累计实际" align="center" prop="cLjgxLsaLjSj" />
      <el-table-column label="炼焦工序轻苯当日实际" align="center" prop="cLjgxQbDrSj" />
      <el-table-column label="炼焦工序轻苯累计实际" align="center" prop="cLjgxQbLjSj" />
      <el-table-column label="氢冶金工序1号回转窑当日实际" align="center" prop="cQyjgxHzy1DrSj" />
      <el-table-column label="氢冶金工序1号回转窑累计实际" align="center" prop="cQyjgxHzy1LjSj" />
      <el-table-column label="氢冶金工序2号回转窑当日实际" align="center" prop="cQyjgxHzy2DrSj" />
      <el-table-column label="氢冶金工序2号回转窑累计实际" align="center" prop="cQyjgxHzy2LjSj" />
      <el-table-column label="氢冶金工序宝龙球团当日实际" align="center" prop="cQyjgxBlqtDrSj" />
      <el-table-column label="氢冶金工序宝龙球团累计实际" align="center" prop="cQyjgxBlqtLjSj" />
      <el-table-column label="氢冶金工序氢冶金当日实际" align="center" prop="cQyjgxQyjDrSj" />
      <el-table-column label="氢冶金工序氢冶金累计实际" align="center" prop="cQyjgxQyjLjSj" />
      <el-table-column label="电炉工序白灰当日实际" align="center" prop="cDlgxBhDrSj" />
      <el-table-column label="电炉工序白灰累计实际" align="center" prop="cDlgxBhLjSj" />
      <el-table-column label="电炉工序1号连铸机当日实际" align="center" prop="cDlgxLzj1DrSj" />
      <el-table-column label="电炉工序1号连铸机累计实际" align="center" prop="cDlgxLzj1LjSj" />
      <el-table-column label="电炉工序2号连铸机当日实际" align="center" prop="cDlgxLzj2DrSj" />
      <el-table-column label="电炉工序2号连铸机累计实际" align="center" prop="cDlgxLzj2LjSj" />
      <el-table-column label="电炉工序3号连铸机当日实际" align="center" prop="cDlgxLzj3DrSj" />
      <el-table-column label="电炉工序3号连铸机累计实际" align="center" prop="cDlgxLzj3LjSj" />
      <el-table-column label="电炉工序废钢加工破碎当日实际" align="center" prop="cDlgxFgjgPsDrSj" />
      <el-table-column label="电炉工序废钢加工破碎累计实际" align="center" prop="cDlgxFgjgPsLjSj" />
      <el-table-column label="电炉工序废钢加工剪切当日实际" align="center" prop="cDlgxFgjgJqDrSj" />
      <el-table-column label="电炉工序废钢加工剪切累计实际" align="center" prop="cDlgxFgjgJqLjSj" />
      <el-table-column label="电炉工序钢渣加工渣钢当日实际" align="center" prop="cDlgxGzjgZgDrSj" />
      <el-table-column label="电炉工序钢渣加工渣钢累计实际" align="center" prop="cDlgxGzjgZgLjSj" />
      <el-table-column label="电炉工序钢渣加工磁选粉当日实际" align="center" prop="cDlgxGzjgCxfDrSj" />
      <el-table-column label="电炉工序钢渣加工磁选粉累计实际" align="center" prop="cDlgxGzjgCxfLjSj" />
      <el-table-column label="电炉工序钢渣加工尾渣当日实际" align="center" prop="cDlgxGzjgWzDrSj" />
      <el-table-column label="电炉工序钢渣加工尾渣累计实际" align="center" prop="cDlgxGzjgWzLjSj" />
      <el-table-column label="轧材工序二棒当日实际" align="center" prop="cZcgxYbDrSj" />
      <el-table-column label="轧材工序二棒累计实际" align="center" prop="cZcgxYbLjSj" />
      <el-table-column label="轧材工序三棒当日实际" align="center" prop="cZcgxEbDrSj" />
      <el-table-column label="轧材工序三棒累计实际" align="center" prop="cZcgxEbLjSj" />
      <el-table-column label="轧材工序一线当日实际" align="center" prop="cZcgxYxDrSj" />
      <el-table-column label="轧材工序一线累计实际" align="center" prop="cZcgxYxLjSj" />
      <el-table-column label="轧材工序二线当日实际" align="center" prop="cZcgxExDrSj" />
      <el-table-column label="轧材工序二线累计实际" align="center" prop="cZcgxExLjSj" />
      <el-table-column label="轧材工序中型当日实际" align="center" prop="cZcgxZxDrSj" />
      <el-table-column label="轧材工序中型累计实际" align="center" prop="cZcgxZxLjSj" />

      <el-table-column label="轧材工序特材电炉当日实际" align="center" prop="cZfree3" />
      <el-table-column label="轧材工序特材电炉累计实际" align="center" prop="cZfree4" />
      <el-table-column label="轧材工序特材中频当日实际" align="center" prop="cZcgxTcZpDrSj" />
      <el-table-column label="轧材工序特材中频累计实际" align="center" prop="cZcgxTcZpLjSj" />
      <el-table-column label="轧材工序特材真空感应当日实际" align="center" prop="cZcgxTcZkgyDrSj" />
      <el-table-column label="轧材工序特材真空感应累计实际" align="center" prop="cZcgxTcZkgyLjSj" />
      <el-table-column label="轧材工序特材电渣当日实际" align="center" prop="cZcgxTcDzDrSj" />
      <el-table-column label="轧材工序特材电渣累计实际" align="center" prop="cZcgxTcDzLjSj" />
      <el-table-column label="轧材工序特材真空自耗当日实际" align="center" prop="cZcgxTcZkzhDrSj" />
      <el-table-column label="轧材工序特材真空自耗累计实际" align="center" prop="cZcgxTcZkzhLjSj" />
      <el-table-column label="轧材工序特材成品当日实际" align="center" prop="cZcgxTcCpDrSj" />
      <el-table-column label="轧材工序特材成品累计实际" align="center" prop="cZcgxTcCpLjSj" />
      <el-table-column label="轧材工序金属制品钢绞线当日实际" align="center" prop="cZcgxJszpGjxDrSj" />
      <el-table-column label="轧材工序金属制品钢绞线累计实际" align="center" prop="cZcgxJszpGjxLjSj" />
      <el-table-column label="轧材工序金属制品镀锌线当日实际" align="center" prop="cZcgxJszpDxxDrSj" />
      <el-table-column label="轧材工序金属制品镀锌线累计实际" align="center" prop="cZcgxJszpDxxLjSj" />
      <el-table-column label="能源工序光伏发电量当日实际" align="center" prop="cZfree1" />
      <el-table-column label="能源工序光伏发电量累计实际" align="center" prop="cZfree2" />
      <el-table-column label="能源工序蒸汽发电量当日实际" align="center" prop="cNygxFdlZqDrSj" />
      <el-table-column label="能源工序蒸汽发电量累计实际" align="center" prop="cNygxFdlZqLjSj" />
      <el-table-column label="能源工序干熄焦发电量当日实际" align="center" prop="cNygxFdlGxjDrSj" />
      <el-table-column label="能源工序干熄焦发电量累计实际" align="center" prop="cNygxFdlGxjLjSj" />
      <el-table-column label="能源工序气体厂氧气当日实际" align="center" prop="cNygxQtcYqDrSj" />
      <el-table-column label="能源工序气体厂氧气累计实际" align="center" prop="cNygxQtcYqLjSj" />
      <el-table-column label="能源工序气体厂氮气当日实际" align="center" prop="cNygxQtcDqDrSj" />
      <el-table-column label="能源工序气体厂氮气累计实际" align="center" prop="cNygxQtcDqLjSj" />
      <el-table-column label="能源工序气体厂氩气当日实际" align="center" prop="cNygxQtcYaqDrSj" />
      <el-table-column label="能源工序气体厂氩气累计实际" align="center" prop="cNygxQtcYaqLjSj" />

      <el-table-column label="气体厂氧气当日放散量" align="center" prop="cZfree5" />
      <el-table-column label="气体厂氧气累计放散量" align="center" prop="cZfree6" />
      <el-table-column label="气体厂氮气当日放散量" align="center" prop="cZfree7" />
      <el-table-column label="气体厂氮气累计放散量" align="center" prop="cZfree8" />
      <el-table-column label="气体厂氧气当日放散率" align="center" prop="cZfree9" />
      <el-table-column label="气体厂氧气累计放散率" align="center" prop="cZfree10" />
      <el-table-column label="气体厂氮气当日放散率" align="center" prop="cZfree11" />
      <el-table-column label="气体厂氮气累计放散率" align="center" prop="cZfree12" />
      <el-table-column label="删除标志" align="center" prop="cState" />
      <el-table-column label="备注" align="center" prop="remake" />
      <el-table-column label="操作" align="center" class-name="small-padding fixed-width">
        <template slot-scope="scope">
          <el-button
            size="mini"
            type="text"
            icon="el-icon-edit"
            @click="handleUpdate(scope.row)"
            v-hasPermi="['scrb:cl:edit']"
          >修改</el-button>
          <el-button
            size="mini"
            type="text"
            icon="el-icon-delete"
            @click="handleDelete(scope.row)"
            v-hasPermi="['scrb:cl:remove']"
          >删除</el-button>
        </template>
      </el-table-column>
    </el-table>

    <pagination
      v-show="total>0"
      :total="total"
      :page.sync="queryParams.pageNum"
      :limit.sync="queryParams.pageSize"
      @pagination="getList"
    />

    <!-- 添加或修改生产日报产量录入对话框 -->
    <el-dialog :title="title" :visible.sync="open" width="1000px" append-to-body>
      <el-form ref="form" :model="form" :rules="rules" label-width="80px">
      <el-form-item label="日期" prop="cDate" >
      <el-date-picker
      v-model="form.cDate"
       :disabled=!isInsert
       type="date"
       size="small"
       value-format="yyyy-MM-dd"
       placeholder="请输入日期">
         </el-date-picker>
         </el-form-item>

        <table>
          <caption>产量实际</caption>
          <tr>
            <td width="80px"></td>
            <td>当日实际</td>
            <td>累计实际</td>
          </tr>
          <tr>
            <td>全焦</td>
            <td><el-input-number v-model="form.cLjgxQjDrSj" placeholder="请输入全焦当日实际产量" /></td>
            <td><el-input-number v-model="form.cLjgxQjLjSj" placeholder="请输入全焦累计实际产量" /></td>
          </tr>
          <tr>
            <td>冶金焦</td>
            <td><el-input-number v-model="form.cLjgxYjjDrSj" placeholder="请输入冶金焦当日实际产量" /></td>
            <td><el-input-number v-model="form.cLjgxYjjLjSj" placeholder="请输入冶金焦累计实际产量" /></td>
          </tr>
          <tr>
            <td>煤焦油</td>
            <td><el-input-number v-model="form.cLjgxMjyDrSj" placeholder="请输入煤焦油当日实际产量" /></td>
            <td><el-input-number v-model="form.cLjgxMjyLjSj" placeholder="请输入煤焦油累计实际产量" /></td>
          </tr>
          <tr>
            <td>硫酸铵</td>
            <td><el-input-number v-model="form.cLjgxLsaDrSj" placeholder="请输入硫酸铵当日实际产量" /></td>
            <td> <el-input-number v-model="form.cLjgxLsaLjSj" placeholder="请输入硫酸铵累计实际产量" /></td>
          </tr>
          <tr>
            <td>轻苯</td>
            <td><el-input-number v-model="form.cLjgxQbDrSj" placeholder="请输入轻苯当日实际产量" /></td>
            <td><el-input-number v-model="form.cLjgxQbLjSj" placeholder="请输入轻苯累计实际产量" /></td>
          </tr>
          <tr>
            <td>1号回转窑</td>
            <td><el-input-number v-model="form.cQyjgxHzy1DrSj" placeholder="请输入1号回转窑当日实际产量" /></td>
            <td><el-input-number v-model="form.cQyjgxHzy1LjSj" placeholder="请输入1号回转窑累计实际产量" /></td>
          </tr>
          <tr>
            <td>2号回转窑</td>
            <td><el-input-number v-model="form.cQyjgxHzy2DrSj" placeholder="请输入2号回转窑当日实际产量" /></td>
            <td><el-input-number v-model="form.cQyjgxHzy2LjSj" placeholder="请输入2号回转窑累计实际产量" /></td>
          </tr>
          <tr>
            <td>宝龙球团</td>
            <td><el-input-number v-model="form.cQyjgxBlqtDrSj" placeholder="请输入宝龙球团当日实际产量" /></td>
            <td><el-input-number v-model="form.cQyjgxBlqtLjSj" placeholder="请输入宝龙球团累计实际产量" /></td>
          </tr>
          <tr>
            <td>氢冶金</td>
            <td><el-input-number v-model="form.cQyjgxQyjDrSj" placeholder="请输入氢冶金当日实际产量" /></td>
            <td><el-input-number v-model="form.cQyjgxQyjLjSj" placeholder="请输入氢冶金累计实际产量" /></td>
          </tr>
          <tr>
            <td>白灰</td>
            <td><el-input-number v-model="form.cDlgxBhDrSj" placeholder="请输入白灰当日实际产量" /></td>
            <td><el-input-number v-model="form.cDlgxBhLjSj" placeholder="请输入白灰累计实际产量" /></td>
          </tr>
          <tr>
            <td>1号连铸机</td>
            <td><el-input-number v-model="form.cDlgxLzj1DrSj" placeholder="请输入1号连铸机当日实际产量" /></td>
            <td><el-input-number v-model="form.cDlgxLzj1LjSj" placeholder="请输入1号连铸机累计实际产量" /></td>
          </tr>
          <tr>
            <td>2号连铸机</td>
            <td><el-input-number v-model="form.cDlgxLzj2DrSj" placeholder="请输入2号连铸机当日实际产量" /></td>
            <td><el-input-number v-model="form.cDlgxLzj2LjSj" placeholder="请输入2号连铸机累计实际产量" /></td>
          </tr>
          <tr>
            <td>3号连铸机</td>
            <td><el-input-number v-model="form.cDlgxLzj3DrSj" placeholder="请输入3号连铸机当日实际产量" /></td>
            <td><el-input-number v-model="form.cDlgxLzj3LjSj" placeholder="请输入3号连铸机累计实际产量" /></td>
          </tr>
          <tr>
            <td>废钢破碎</td>
            <td><el-input-number v-model="form.cDlgxFgjgPsDrSj" placeholder="请输入废钢破碎当日实际产量" /></td>
            <td><el-input-number v-model="form.cDlgxFgjgPsLjSj" placeholder="请输入废钢破碎累计实际产量" /></td>
          </tr>
          <tr>
            <td>废钢剪切</td>
            <td><el-input-number v-model="form.cDlgxFgjgJqDrSj" placeholder="请输入废钢剪切当日实际产量" /></td>
            <td><el-input-number v-model="form.cDlgxFgjgJqLjSj" placeholder="请输入废钢剪切累计实际产量" /></td>
          </tr>
          <tr>
            <td>原渣加工</td>
            <td><el-input-number v-model="form.zfree13" placeholder="请输入原料加工当日实际产量" /></td>
            <td> <el-input-number v-model="form.zfree14" placeholder="请输入原料加工累计实际产量" /></td>
          </tr>
          <tr>
            <td>磁选粉</td>
            <td><el-input-number v-model="form.cDlgxGzjgCxfDrSj" placeholder="请输入磁选粉当日实际产量" /></td>
            <td> <el-input-number v-model="form.cDlgxGzjgCxfLjSj" placeholder="请输入磁选粉累计实际产量" /></td>
          </tr>
          <tr>
            <td>尾渣</td>
            <td><el-input-number v-model="form.cDlgxGzjgWzDrSj" placeholder="请输入尾渣当日实际产量" /></td>
            <td><el-input-number v-model="form.cDlgxGzjgWzLjSj" placeholder="请输入尾渣累计实际产量" /></td>
          </tr>
          <tr>
            <td>精炼铸余渣</td>
            <td><el-input-number v-model="form.cDlgxGzjgZgDrSj" placeholder="请输入钢渣当日实际产量" /></td>
            <td><el-input-number v-model="form.cDlgxGzjgZgLjSj" placeholder="请输入钢渣累计实际产量" /></td>
          </tr>
          <tr>
            <td>二棒</td>
            <td><el-input-number v-model="form.cZcgxYbDrSj" placeholder="请输入一棒当日实际产量" /></td>
            <td><el-input-number v-model="form.cZcgxYbLjSj" placeholder="请输入一棒累计实际产量" /></td>
          </tr>
          <tr>
            <td>三棒</td>
            <td><el-input-number v-model="form.cZcgxEbDrSj" placeholder="请输入二棒当日实际产量" /></td>
            <td><el-input-number v-model="form.cZcgxEbLjSj" placeholder="请输入二棒累计实际产量" /></td>
          </tr>
          <tr>
            <td>大棒</td>
            <td><el-input-number v-model="form.cZcgxYxDrSj" placeholder="请输入大棒当日实际产量" /></td>
            <td><el-input-number v-model="form.cZcgxYxLjSj" placeholder="请输入大棒累计实际产量" /></td>
          </tr>
          <tr>
            <td>中型</td>
            <td><el-input-number v-model="form.cZcgxZxDrSj" placeholder="请输入中型当日实际产量" /></td>
            <td><el-input-number v-model="form.cZcgxZxLjSj" placeholder="请输入中型累计实际产量" /></td>
          </tr>
          <tr>
            <td>二线</td>
            <td><el-input-number v-model="form.cZcgxExDrSj" placeholder="请输入二线当日实际产量" /></td>
            <td><el-input-number v-model="form.cZcgxExLjSj" placeholder="请输入二线累计实际产量" /></td>
          </tr>

          <tr>
            <td>电炉</td>
            <td><el-input-number v-model="form.zfree3" placeholder="请输入电炉当日实际产量" /></td>
            <td><el-input-number v-model="form.zfree4" placeholder="请输入电炉累计实际产量" /></td>
          </tr>
          <tr>
            <td>特材中频</td>
            <td><el-input-number v-model="form.cZcgxTcZpDrSj" placeholder="请输入中频当日实际产量" /></td>
            <td><el-input-number v-model="form.cZcgxTcZpLjSj" placeholder="请输入中频累计实际产量" /></td>
          </tr>
          <tr>
            <td>特材真空感应</td>
            <td><el-input-number v-model="form.cZcgxTcZkgyDrSj" placeholder="请输入真空感应当日实际产量" /></td>
            <td><el-input-number v-model="form.cZcgxTcZkgyLjSj" placeholder="请输入真空感应累计实际产量" /></td>
          </tr>
          <tr>
            <td>特材电渣</td>
            <td><el-input-number v-model="form.cZcgxTcDzDrSj" placeholder="请输入电渣当日实际产量" /></td>
            <td><el-input-number v-model="form.cZcgxTcDzLjSj" placeholder="请输入电渣累计实际产量" /></td>
          </tr>
          <tr>
            <td>特材真空自耗</td>
            <td><el-input-number v-model="form.cZcgxTcZkzhDrSj" placeholder="请输入真空自耗当日实际产量" /></td>
            <td><el-input-number v-model="form.cZcgxTcZkzhLjSj" placeholder="请输入真空自耗累计实际产量" /></td>
          </tr>
          <tr>
            <td>特材成品</td>
            <td><el-input-number v-model="form.cZcgxTcCpDrSj" placeholder="请输入成品当日实际产量" /></td>
            <td><el-input-number v-model="form.cZcgxTcCpLjSj" placeholder="请输入成品累计实际产量" /></td>
          </tr>
          <tr>
            <td>钢绞线</td>
            <td><el-input-number v-model="form.cZcgxJszpGjxDrSj" placeholder="请输入钢绞线当日实际产量" /></td>
            <td><el-input-number v-model="form.cZcgxJszpGjxLjSj" placeholder="请输入钢绞线累计实际产量" /></td>
          </tr>
          <tr>
            <td>镀锌线</td>
            <td><el-input-number v-model="form.cZcgxJszpDxxDrSj" placeholder="请输入镀锌线当日实际产量" /></td>
            <td><el-input-number v-model="form.cZcgxJszpDxxLjSj" placeholder="请输入镀锌线累计实际产量" /></td>
          </tr>
          <tr>
            <td>光伏发电</td>
            <td><el-input-number v-model="form.zfree1" placeholder="请输入光伏发电当日实际产量" /></td>
            <td><el-input-number v-model="form.zfree2" placeholder="请输入光伏发电累计实际产量" /></td>
          </tr>
          <tr>
            <td>蒸汽发电</td>
            <td><el-input-number v-model="form.cNygxFdlZqDrSj" placeholder="请输入蒸汽发电当日实际产量" /></td>
            <td><el-input-number v-model="form.cNygxFdlZqLjSj" placeholder="请输入蒸汽发电累计实际产量" /></td>
          </tr>
          <tr>
            <td>干熄焦发电</td>
            <td><el-input-number v-model="form.cNygxFdlGxjDrSj" placeholder="请输入干熄焦发电当日实际产量" /></td>
            <td><el-input-number v-model="form.cNygxFdlGxjLjSj" placeholder="请输入干熄焦发电累计实际产量" /></td>
          </tr>
          <tr>
            <td>氧气</td>
            <td><el-input-number v-model="form.cNygxQtcYqDrSj" placeholder="请输入氧气当日实际产量" /></td>
            <td><el-input-number v-model="form.cNygxQtcYqLjSj" placeholder="请输入氧气累计实际产量" /></td>
          </tr>
          <tr>
            <td>氮气</td>
            <td><el-input-number v-model="form.cNygxQtcDqDrSj" placeholder="请输入氮气当日实际产量" /></td>
            <td><el-input-number v-model="form.cNygxQtcDqLjSj" placeholder="请输入氮气累计实际产量" /></td>
          </tr>
          <tr>
            <td>氩气</td>
            <td><el-input-number v-model="form.cNygxQtcYaqDrSj" placeholder="请输入氩气当日实际产量" /></td>
            <td><el-input-number v-model="form.cNygxQtcYaqLjSj" placeholder="请输入氩气累计实际产量" /></td>
          </tr>
        </table>
        <table>
          <caption>气体厂放散量</caption>
          <tr>
            <td width="80px"></td>
            <td>当日</td>
            <td>累计</td>
          </tr>
          <tr>
            <td>氧气放散量</td>
            <td><el-input-number v-model="form.zfree5" placeholder="请输入氧气放散量当日" /></td>
            <td><el-input-number v-model="form.zfree6" placeholder="请输入氧气放散量累计" /></td>
          </tr>
          <tr>
            <td>氧气放散率</td>
            <td><el-input-number v-model="form.zfree7" placeholder="请输入氧气放散率当日" /></td>
            <td><el-input-number v-model="form.zfree8" placeholder="请输入氧气放散率累计" /></td>
          </tr>
          <tr>
            <td>氮气放散量</td>
            <td><el-input-number v-model="form.zfree9" placeholder="请输入氮气放散量当日" /></td>
            <td><el-input-number v-model="form.zfree10" placeholder="请输入氮气放散量累计" /></td>
          </tr>
          <tr>
            <td>氮气放散率</td>
            <td><el-input-number v-model="form.zfree11" placeholder="请输入氮气放散率当日" /></td>
            <td><el-input-number v-model="form.zfree12" placeholder="请输入氮气放散率累计" /></td>
          </tr>
        </table>


        <!--<el-form-item label="炼焦工序全焦当日实际" prop="cLjgxQjDrSj">-->
          <!--<el-input-number v-model="form.cLjgxQjDrSj" placeholder="请输入炼焦工序全焦当日实际" />-->
        <!--</el-form-item>-->
        <!--<el-form-item label="炼焦工序全焦累计实际" prop="cLjgxQjLjSj">-->
          <!--<el-input-number v-model="form.cLjgxQjLjSj" placeholder="请输入炼焦工序全焦累计实际" />-->
        <!--</el-form-item>-->
        <!--<el-form-item label="炼焦工序冶金焦当日实际" prop="cLjgxYjjDrSj">-->
          <!--<el-input-number v-model="form.cLjgxYjjDrSj" placeholder="请输入炼焦工序冶金焦当日实际" />-->
        <!--</el-form-item>-->
        <!--<el-form-item label="炼焦工序冶金焦累计实际" prop="cLjgxYjjLjSj">-->
          <!--<el-input-number v-model="form.cLjgxYjjLjSj" placeholder="请输入炼焦工序冶金焦累计实际" />-->
        <!--</el-form-item>-->
        <!--<el-form-item label="炼焦工序煤焦油当日实际" prop="cLjgxMjyDrSj">-->
          <!--<el-input-number v-model="form.cLjgxMjyDrSj" placeholder="请输入炼焦工序煤焦油当日实际" />-->
        <!--</el-form-item>-->
        <!--<el-form-item label="炼焦工序煤焦油累计实际" prop="cLjgxMjyLjSj">-->
          <!--<el-input-number v-model="form.cLjgxMjyLjSj" placeholder="请输入炼焦工序煤焦油累计实际" />-->
        <!--</el-form-item>-->
        <!--<el-form-item label="炼焦工序硫酸铵当日实际" prop="cLjgxLsaDrSj">-->
          <!--<el-input-number v-model="form.cLjgxLsaDrSj" placeholder="请输入炼焦工序硫酸铵当日实际" />-->
        <!--</el-form-item>-->
        <!--<el-form-item label="炼焦工序硫酸铵累计实际" prop="cLjgxLsaLjSj">-->
          <!--<el-input-number v-model="form.cLjgxLsaLjSj" placeholder="请输入炼焦工序硫酸铵累计实际" />-->
        <!--</el-form-item>-->
        <!--<el-form-item label="炼焦工序轻苯当日实际" prop="cLjgxQbDrSj">-->
          <!--<el-input-number v-model="form.cLjgxQbDrSj" placeholder="请输入炼焦工序轻苯当日实际" />-->
        <!--</el-form-item>-->
        <!--<el-form-item label="炼焦工序轻苯累计实际" prop="cLjgxQbLjSj">-->
          <!--<el-input-number v-model="form.cLjgxQbLjSj" placeholder="请输入炼焦工序轻苯累计实际" />-->
        <!--</el-form-item>-->
        <!--<el-form-item label="氢冶金工序1号回转窑当日实际" prop="cQyjgxHzy1DrSj">-->
          <!--<el-input-number v-model="form.cQyjgxHzy1DrSj" placeholder="请输入氢冶金工序1号回转窑当日实际" />-->
        <!--</el-form-item>-->
        <!--<el-form-item label="氢冶金工序1号回转窑累计实际" prop="cQyjgxHzy1LjSj">-->
          <!--<el-input-number v-model="form.cQyjgxHzy1LjSj" placeholder="请输入氢冶金工序1号回转窑累计实际" />-->
        <!--</el-form-item>-->
        <!--<el-form-item label="氢冶金工序2号回转窑当日实际" prop="cQyjgxHzy2DrSj">-->
          <!--<el-input-number v-model="form.cQyjgxHzy2DrSj" placeholder="请输入氢冶金工序2号回转窑当日实际" />-->
        <!--</el-form-item>-->
        <!--<el-form-item label="氢冶金工序2号回转窑累计实际" prop="cQyjgxHzy2LjSj">-->
          <!--<el-input-number v-model="form.cQyjgxHzy2LjSj" placeholder="请输入氢冶金工序2号回转窑累计实际" />-->
        <!--</el-form-item>-->
        <!--<el-form-item label="氢冶金工序宝龙球团当日实际" prop="cQyjgxBlqtDrSj">-->
          <!--<el-input-number v-model="form.cQyjgxBlqtDrSj" placeholder="请输入氢冶金工序宝龙球团当日实际" />-->
        <!--</el-form-item>-->
        <!--<el-form-item label="氢冶金工序宝龙球团累计实际" prop="cQyjgxBlqtLjSj">-->
          <!--<el-input-number v-model="form.cQyjgxBlqtLjSj" placeholder="请输入氢冶金工序宝龙球团累计实际" />-->
        <!--</el-form-item>-->
        <!--<el-form-item label="氢冶金工序氢冶金当日实际" prop="cQyjgxQyjDrSj">-->
          <!--<el-input-number v-model="form.cQyjgxQyjDrSj" placeholder="请输入氢冶金工序氢冶金当日实际" />-->
        <!--</el-form-item>-->
        <!--<el-form-item label="氢冶金工序氢冶金累计实际" prop="cQyjgxQyjLjSj">-->
          <!--<el-input-number v-model="form.cQyjgxQyjLjSj" placeholder="请输入氢冶金工序氢冶金累计实际" />-->
        <!--</el-form-item>-->
        <!--<el-form-item label="电炉工序白灰当日实际" prop="cDlgxBhDrSj">-->
          <!--<el-input-number v-model="form.cDlgxBhDrSj" placeholder="请输入电炉工序白灰当日实际" />-->
        <!--</el-form-item>-->
        <!--<el-form-item label="电炉工序白灰累计实际" prop="cDlgxBhLjSj">-->
          <!--<el-input-number v-model="form.cDlgxBhLjSj" placeholder="请输入电炉工序白灰累计实际" />-->
        <!--</el-form-item>-->
        <!--<el-form-item label="电炉工序1号连铸机当日实际" prop="cDlgxLzj1DrSj">-->
          <!--<el-input-number v-model="form.cDlgxLzj1DrSj" placeholder="请输入电炉工序1号连铸机当日实际" />-->
        <!--</el-form-item>-->
        <!--<el-form-item label="电炉工序1号连铸机累计实际" prop="cDlgxLzj1LjSj">-->
          <!--<el-input-number v-model="form.cDlgxLzj1LjSj" placeholder="请输入电炉工序1号连铸机累计实际" />-->
        <!--</el-form-item>-->
        <!--<el-form-item label="电炉工序2号连铸机当日实际" prop="cDlgxLzj2DrSj">-->
          <!--<el-input-number v-model="form.cDlgxLzj2DrSj" placeholder="请输入电炉工序2号连铸机当日实际" />-->
        <!--</el-form-item>-->
        <!--<el-form-item label="电炉工序2号连铸机累计实际" prop="cDlgxLzj2LjSj">-->
          <!--<el-input-number v-model="form.cDlgxLzj2LjSj" placeholder="请输入电炉工序2号连铸机累计实际" />-->
        <!--</el-form-item>-->
        <!--<el-form-item label="电炉工序3号连铸机当日实际" prop="cDlgxLzj3DrSj">-->
          <!--<el-input-number v-model="form.cDlgxLzj3DrSj" placeholder="请输入电炉工序3号连铸机当日实际" />-->
        <!--</el-form-item>-->
        <!--<el-form-item label="电炉工序3号连铸机累计实际" prop="cDlgxLzj3LjSj">-->
          <!--<el-input-number v-model="form.cDlgxLzj3LjSj" placeholder="请输入电炉工序3号连铸机累计实际" />-->
        <!--</el-form-item>-->
        <!--<el-form-item label="电炉工序废钢加工破碎当日实际" prop="cDlgxFgjgPsDrSj">-->
          <!--<el-input-number v-model="form.cDlgxFgjgPsDrSj" placeholder="请输入电炉工序废钢加工破碎当日实际" />-->
        <!--</el-form-item>-->
        <!--<el-form-item label="电炉工序废钢加工破碎累计实际" prop="cDlgxFgjgPsLjSj">-->
          <!--<el-input-number v-model="form.cDlgxFgjgPsLjSj" placeholder="请输入电炉工序废钢加工破碎累计实际" />-->
        <!--</el-form-item>-->
        <!--<el-form-item label="电炉工序废钢加工剪切当日实际" prop="cDlgxFgjgJqDrSj">-->
          <!--<el-input-number v-model="form.cDlgxFgjgJqDrSj" placeholder="请输入电炉工序废钢加工剪切当日实际" />-->
        <!--</el-form-item>-->
        <!--<el-form-item label="电炉工序废钢加工剪切累计实际" prop="cDlgxFgjgJqLjSj">-->
          <!--<el-input-number v-model="form.cDlgxFgjgJqLjSj" placeholder="请输入电炉工序废钢加工剪切累计实际" />-->
        <!--</el-form-item>-->
        <!--<el-form-item label="电炉工序钢渣加工渣钢当日实际" prop="cDlgxGzjgZgDrSj">-->
          <!--<el-input-number v-model="form.cDlgxGzjgZgDrSj" placeholder="请输入电炉工序钢渣加工渣钢当日实际" />-->
        <!--</el-form-item>-->
        <!--<el-form-item label="电炉工序钢渣加工渣钢累计实际" prop="cDlgxGzjgZgLjSj">-->
          <!--<el-input-number v-model="form.cDlgxGzjgZgLjSj" placeholder="请输入电炉工序钢渣加工渣钢累计实际" />-->
        <!--</el-form-item>-->
        <!--<el-form-item label="电炉工序钢渣加工磁选粉当日实际" prop="cDlgxGzjgCxfDrSj">-->
          <!--<el-input-number v-model="form.cDlgxGzjgCxfDrSj" placeholder="请输入电炉工序钢渣加工磁选粉当日实际" />-->
        <!--</el-form-item>-->
        <!--<el-form-item label="电炉工序钢渣加工磁选粉累计实际" prop="cDlgxGzjgCxfLjSj">-->
          <!--<el-input-number v-model="form.cDlgxGzjgCxfLjSj" placeholder="请输入电炉工序钢渣加工磁选粉累计实际" />-->
        <!--</el-form-item>-->
        <!--<el-form-item label="电炉工序钢渣加工尾渣当日实际" prop="cDlgxGzjgWzDrSj">-->
          <!--<el-input-number v-model="form.cDlgxGzjgWzDrSj" placeholder="请输入电炉工序钢渣加工尾渣当日实际" />-->
        <!--</el-form-item>-->
        <!--<el-form-item label="电炉工序钢渣加工尾渣累计实际" prop="cDlgxGzjgWzLjSj">-->
          <!--<el-input-number v-model="form.cDlgxGzjgWzLjSj" placeholder="请输入电炉工序钢渣加工尾渣累计实际" />-->
        <!--</el-form-item>-->
        <!--<el-form-item label="轧材工序一棒当日实际" prop="cZcgxYbDrSj">-->
          <!--<el-input-number v-model="form.cZcgxYbDrSj" placeholder="请输入轧材工序一棒当日实际" />-->
        <!--</el-form-item>-->
        <!--<el-form-item label="轧材工序一棒累计实际" prop="cZcgxYbLjSj">-->
          <!--<el-input-number v-model="form.cZcgxYbLjSj" placeholder="请输入轧材工序一棒累计实际" />-->
        <!--</el-form-item>-->
        <!--<el-form-item label="轧材工序二棒当日实际" prop="cZcgxEbDrSj">-->
          <!--<el-input-number v-model="form.cZcgxEbDrSj" placeholder="请输入轧材工序二棒当日实际" />-->
        <!--</el-form-item>-->
        <!--<el-form-item label="轧材工序二棒累计实际" prop="cZcgxEbLjSj">-->
          <!--<el-input-number v-model="form.cZcgxEbLjSj" placeholder="请输入轧材工序二棒累计实际" />-->
        <!--</el-form-item>-->
        <!--<el-form-item label="轧材工序一线当日实际" prop="cZcgxYxDrSj">-->
          <!--<el-input-number v-model="form.cZcgxYxDrSj" placeholder="请输入轧材工序一线当日实际" />-->
        <!--</el-form-item>-->
        <!--<el-form-item label="轧材工序一线累计实际" prop="cZcgxYxLjSj">-->
          <!--<el-input-number v-model="form.cZcgxYxLjSj" placeholder="请输入轧材工序一线累计实际" />-->
        <!--</el-form-item>-->
        <!--<el-form-item label="轧材工序二线当日实际" prop="cZcgxExDrSj">-->
          <!--<el-input-number v-model="form.cZcgxExDrSj" placeholder="请输入轧材工序二线当日实际" />-->
        <!--</el-form-item>-->
        <!--<el-form-item label="轧材工序二线累计实际" prop="cZcgxExLjSj">-->
          <!--<el-input-number v-model="form.cZcgxExLjSj" placeholder="请输入轧材工序二线累计实际" />-->
        <!--</el-form-item>-->
        <!--<el-form-item label="轧材工序中型当日实际" prop="cZcgxZxDrSj">-->
          <!--<el-input-number v-model="form.cZcgxZxDrSj" placeholder="请输入轧材工序中型当日实际" />-->
        <!--</el-form-item>-->
        <!--<el-form-item label="轧材工序中型累计实际" prop="cZcgxZxLjSj">-->
          <!--<el-input-number v-model="form.cZcgxZxLjSj" placeholder="请输入轧材工序中型累计实际" />-->
        <!--</el-form-item>-->
        <!--<el-form-item label="轧材工序特材中频当日实际" prop="cZcgxTcZpDrSj">-->
          <!--<el-input-number v-model="form.cZcgxTcZpDrSj" placeholder="请输入轧材工序特材中频当日实际" />-->
        <!--</el-form-item>-->
        <!--<el-form-item label="轧材工序特材中频累计实际" prop="cZcgxTcZpLjSj">-->
          <!--<el-input-number v-model="form.cZcgxTcZpLjSj" placeholder="请输入轧材工序特材中频累计实际" />-->
        <!--</el-form-item>-->
        <!--<el-form-item label="轧材工序特材真空感应当日实际" prop="cZcgxTcZkgyDrSj">-->
          <!--<el-input-number v-model="form.cZcgxTcZkgyDrSj" placeholder="请输入轧材工序特材真空感应当日实际" />-->
        <!--</el-form-item>-->
        <!--<el-form-item label="轧材工序特材真空感应累计实际" prop="cZcgxTcZkgyLjSj">-->
          <!--<el-input-number v-model="form.cZcgxTcZkgyLjSj" placeholder="请输入轧材工序特材真空感应累计实际" />-->
        <!--</el-form-item>-->
        <!--<el-form-item label="轧材工序特材电渣当日实际" prop="cZcgxTcDzDrSj">-->
          <!--<el-input-number v-model="form.cZcgxTcDzDrSj" placeholder="请输入轧材工序特材电渣当日实际" />-->
        <!--</el-form-item>-->
        <!--<el-form-item label="轧材工序特材电渣累计实际" prop="cZcgxTcDzLjSj">-->
          <!--<el-input-number v-model="form.cZcgxTcDzLjSj" placeholder="请输入轧材工序特材电渣累计实际" />-->
        <!--</el-form-item>-->
        <!--<el-form-item label="轧材工序特材真空自耗当日实际" prop="cZcgxTcZkzhDrSj">-->
          <!--<el-input-number v-model="form.cZcgxTcZkzhDrSj" placeholder="请输入轧材工序特材真空自耗当日实际" />-->
        <!--</el-form-item>-->
        <!--<el-form-item label="轧材工序特材真空自耗累计实际" prop="cZcgxTcZkzhLjSj">-->
          <!--<el-input-number v-model="form.cZcgxTcZkzhLjSj" placeholder="请输入轧材工序特材真空自耗累计实际" />-->
        <!--</el-form-item>-->
        <!--<el-form-item label="轧材工序特材成品当日实际" prop="cZcgxTcCpDrSj">-->
          <!--<el-input-number v-model="form.cZcgxTcCpDrSj" placeholder="请输入轧材工序特材成品当日实际" />-->
        <!--</el-form-item>-->
        <!--<el-form-item label="轧材工序特材成品累计实际" prop="cZcgxTcCpLjSj">-->
          <!--<el-input-number v-model="form.cZcgxTcCpLjSj" placeholder="请输入轧材工序特材成品累计实际" />-->
        <!--</el-form-item>-->
        <!--<el-form-item label="轧材工序金属制品钢绞线当日实际" prop="cZcgxJszpGjxDrSj">-->
          <!--<el-input-number v-model="form.cZcgxJszpGjxDrSj" placeholder="请输入轧材工序金属制品钢绞线当日实际" />-->
        <!--</el-form-item>-->
        <!--<el-form-item label="轧材工序金属制品钢绞线累计实际" prop="cZcgxJszpGjxLjSj">-->
          <!--<el-input-number v-model="form.cZcgxJszpGjxLjSj" placeholder="请输入轧材工序金属制品钢绞线累计实际" />-->
        <!--</el-form-item>-->
        <!--<el-form-item label="轧材工序金属制品镀锌线当日实际" prop="cZcgxJszpDxxDrSj">-->
          <!--<el-input-number v-model="form.cZcgxJszpDxxDrSj" placeholder="请输入轧材工序金属制品镀锌线当日实际" />-->
        <!--</el-form-item>-->
        <!--<el-form-item label="轧材工序金属制品镀锌线累计实际" prop="cZcgxJszpDxxLjSj">-->
          <!--<el-input-number v-model="form.cZcgxJszpDxxLjSj" placeholder="请输入轧材工序金属制品镀锌线累计实际" />-->
        <!--</el-form-item>-->
        <!--<el-form-item label="能源工序蒸汽发电量当日实际" prop="cNygxFdlZqDrSj">-->
          <!--<el-input-number v-model="form.cNygxFdlZqDrSj" placeholder="请输入能源工序蒸汽发电量当日实际" />-->
        <!--</el-form-item>-->
        <!--<el-form-item label="能源工序蒸汽发电量累计实际" prop="cNygxFdlZqLjSj">-->
          <!--<el-input-number v-model="form.cNygxFdlZqLjSj" placeholder="请输入能源工序蒸汽发电量累计实际" />-->
        <!--</el-form-item>-->
        <!--<el-form-item label="能源工序干熄焦发电量当日实际" prop="cNygxFdlGxjDrSj">-->
          <!--<el-input-number v-model="form.cNygxFdlGxjDrSj" placeholder="请输入能源工序干熄焦发电量当日实际" />-->
        <!--</el-form-item>-->
        <!--<el-form-item label="能源工序干熄焦发电量累计实际" prop="cNygxFdlGxjLjSj">-->
          <!--<el-input-number v-model="form.cNygxFdlGxjLjSj" placeholder="请输入能源工序干熄焦发电量累计实际" />-->
        <!--</el-form-item>-->
        <!--<el-form-item label="能源工序气体厂氧气当日实际" prop="cNygxQtcYqDrSj">-->
          <!--<el-input-number v-model="form.cNygxQtcYqDrSj" placeholder="请输入能源工序气体厂氧气当日实际" />-->
        <!--</el-form-item>-->
        <!--<el-form-item label="能源工序气体厂氧气累计实际" prop="cNygxQtcYqLjSj">-->
          <!--<el-input-number v-model="form.cNygxQtcYqLjSj" placeholder="请输入能源工序气体厂氧气累计实际" />-->
        <!--</el-form-item>-->
        <!--<el-form-item label="能源工序气体厂氮气当日实际" prop="cNygxQtcDqDrSj">-->
          <!--<el-input-number v-model="form.cNygxQtcDqDrSj" placeholder="请输入能源工序气体厂氮气当日实际" />-->
        <!--</el-form-item>-->
        <!--<el-form-item label="能源工序气体厂氮气累计实际" prop="cNygxQtcDqLjSj">-->
          <!--<el-input-number v-model="form.cNygxQtcDqLjSj" placeholder="请输入能源工序气体厂氮气累计实际" />-->
        <!--</el-form-item>-->
        <!--<el-form-item label="能源工序气体厂氩气当日实际" prop="cNygxQtcYaqDrSj">-->
          <!--<el-input-number v-model="form.cNygxQtcYaqDrSj" placeholder="请输入能源工序气体厂氩气当日实际" />-->
        <!--</el-form-item>-->
        <!--<el-form-item label="能源工序气体厂氩气累计实际" prop="cNygxQtcYaqLjSj">-->
          <!--<el-input-number v-model="form.cNygxQtcYaqLjSj" placeholder="请输入能源工序气体厂氩气累计实际" />-->
        <!--</el-form-item>-->
        <!--<el-form-item label="删除标志" prop="cState">-->
          <!--<el-input-number v-model="form.cState" placeholder="请输入删除标志" />-->
        <!--</el-form-item>-->
        <el-form-item label="备注" prop="remake">
          <el-input v-model="form.remake" placeholder="请输入备注" />
        </el-form-item>
      </el-form>
      <div slot="footer" class="dialog-footer">
        <el-button type="primary" @click="submitForm">确 定</el-button>
        <el-button @click="cancel">取 消</el-button>
      </div>
    </el-dialog>
  </div>
</template>

<script>
import { listCl, getCl, delCl, addCl, updateCl } from "@/api/scrb/cl";

export default {
  name: "Cl",
  data() {
    return {
      // 遮罩层
      loading: true,
      // 选中数组
      ids: [],
      // 非单个禁用
      single: true,
      // 非多个禁用
      multiple: true,
      // 显示搜索条件
      showSearch: true,
      // 总条数
      total: 0,
      // 生产日报产量录入表格数据
      clList: [],
      // 弹出层标题
      title: "",
      // 是否显示弹出层
      open: false,
      // 查询参数
      queryParams: {
        pageNum: 1,
        pageSize: 10,
        cLjgxQjDrSj: null,
        cLjgxQjLjSj: null,
        cLjgxYjjDrSj: null,
        cLjgxYjjLjSj: null,
        cLjgxMjyDrSj: null,
        cLjgxMjyLjSj: null,
        cLjgxLsaDrSj: null,
        cLjgxLsaLjSj: null,
        cLjgxQbDrSj: null,
        cLjgxQbLjSj: null,
        cQyjgxHzy1DrSj: null,
        cQyjgxHzy1LjSj: null,
        cQyjgxHzy2DrSj: null,
        cQyjgxHzy2LjSj: null,
        cQyjgxBlqtDrSj: null,
        cQyjgxBlqtLjSj: null,
        cQyjgxQyjDrSj: null,
        cQyjgxQyjLjSj: null,
        cDlgxBhDrSj: null,
        cDlgxBhLjSj: null,
        cDlgxLzj1DrSj: null,
        cDlgxLzj1LjSj: null,
        cDlgxLzj2DrSj: null,
        cDlgxLzj2LjSj: null,
        cDlgxLzj3DrSj: null,
        cDlgxLzj3LjSj: null,
        cDlgxFgjgPsDrSj: null,
        cDlgxFgjgPsLjSj: null,
        cDlgxFgjgJqDrSj: null,
        cDlgxFgjgJqLjSj: null,
        cDlgxGzjgZgDrSj: null,
        cDlgxGzjgZgLjSj: null,
        cDlgxGzjgCxfDrSj: null,
        cDlgxGzjgCxfLjSj: null,
        cDlgxGzjgWzDrSj: null,
        cDlgxGzjgWzLjSj: null,
        cZcgxYbDrSj: null,
        cZcgxYbLjSj: null,
        cZcgxEbDrSj: null,
        cZcgxEbLjSj: null,
        cZcgxYxDrSj: null,
        cZcgxYxLjSj: null,
        cZcgxExDrSj: null,
        cZcgxExLjSj: null,
        cZcgxZxDrSj: null,
        cZcgxZxLjSj: null,
        cZcgxTcZpDrSj: null,
        cZcgxTcZpLjSj: null,
        cZcgxTcZkgyDrSj: null,
        cZcgxTcZkgyLjSj: null,
        cZcgxTcDzDrSj: null,
        cZcgxTcDzLjSj: null,
        cZcgxTcZkzhDrSj: null,
        cZcgxTcZkzhLjSj: null,
        cZcgxTcCpDrSj: null,
        cZcgxTcCpLjSj: null,
        cZcgxJszpGjxDrSj: null,
        cZcgxJszpGjxLjSj: null,
        cZcgxJszpDxxDrSj: null,
        cZcgxJszpDxxLjSj: null,
        cNygxFdlZqDrSj: null,
        cNygxFdlZqLjSj: null,
        cNygxFdlGxjDrSj: null,
        cNygxFdlGxjLjSj: null,
        cNygxQtcYqDrSj: null,
        cNygxQtcYqLjSj: null,
        cNygxQtcDqDrSj: null,
        cNygxQtcDqLjSj: null,
        cNygxQtcYaqDrSj: null,
        cNygxQtcYaqLjSj: null,
        cState: null,
        remake: null,
        zfree1: null,
        zfree2: null,
        zfree3: null,
        zfree4: null,
        zfree5: null,
        zfree6: null,
        zfree7: null,
        zfree8: null,
        zfree9: null,
        zfree10: null,
        zfree11: null,
        zfree12: null,
        zfree13: null,
        zfree14: null,
        zfree15: null,
        zfree16: null,
        zfree17: null,
        zfree18: null,
        zfree19: null,
        zfree20: null
      },
      // 表单参数
      form: {},
      // 表单校验
      rules: {
      },
      isInsert:true,
    };
  },
  created() {
    this.getList();
  },
  methods: {
    /** 查询生产日报产量录入列表 */
    getList() {
      this.loading = true;
      listCl(this.queryParams).then(response => {
        this.clList = response.rows;
        this.total = response.total;
        this.loading = false;
      });
    },
    // 取消按钮
    cancel() {
      this.open = false;
      this.reset();
    },
    // 表单重置
    reset() {
      this.form = {
        cDate: null,
        cLjgxQjDrSj: null,
        cLjgxQjLjSj: null,
        cLjgxYjjDrSj: null,
        cLjgxYjjLjSj: null,
        cLjgxMjyDrSj: null,
        cLjgxMjyLjSj: null,
        cLjgxLsaDrSj: null,
        cLjgxLsaLjSj: null,
        cLjgxQbDrSj: null,
        cLjgxQbLjSj: null,
        cQyjgxHzy1DrSj: null,
        cQyjgxHzy1LjSj: null,
        cQyjgxHzy2DrSj: null,
        cQyjgxHzy2LjSj: null,
        cQyjgxBlqtDrSj: null,
        cQyjgxBlqtLjSj: null,
        cQyjgxQyjDrSj: null,
        cQyjgxQyjLjSj: null,
        cDlgxBhDrSj: null,
        cDlgxBhLjSj: null,
        cDlgxLzj1DrSj: null,
        cDlgxLzj1LjSj: null,
        cDlgxLzj2DrSj: null,
        cDlgxLzj2LjSj: null,
        cDlgxLzj3DrSj: null,
        cDlgxLzj3LjSj: null,
        cDlgxFgjgPsDrSj: null,
        cDlgxFgjgPsLjSj: null,
        cDlgxFgjgJqDrSj: null,
        cDlgxFgjgJqLjSj: null,
        cDlgxGzjgZgDrSj: null,
        cDlgxGzjgZgLjSj: null,
        cDlgxGzjgCxfDrSj: null,
        cDlgxGzjgCxfLjSj: null,
        cDlgxGzjgWzDrSj: null,
        cDlgxGzjgWzLjSj: null,
        cZcgxYbDrSj: null,
        cZcgxYbLjSj: null,
        cZcgxEbDrSj: null,
        cZcgxEbLjSj: null,
        cZcgxYxDrSj: null,
        cZcgxYxLjSj: null,
        cZcgxExDrSj: null,
        cZcgxExLjSj: null,
        cZcgxZxDrSj: null,
        cZcgxZxLjSj: null,
        cZcgxTcZpDrSj: null,
        cZcgxTcZpLjSj: null,
        cZcgxTcZkgyDrSj: null,
        cZcgxTcZkgyLjSj: null,
        cZcgxTcDzDrSj: null,
        cZcgxTcDzLjSj: null,
        cZcgxTcZkzhDrSj: null,
        cZcgxTcZkzhLjSj: null,
        cZcgxTcCpDrSj: null,
        cZcgxTcCpLjSj: null,
        cZcgxJszpGjxDrSj: null,
        cZcgxJszpGjxLjSj: null,
        cZcgxJszpDxxDrSj: null,
        cZcgxJszpDxxLjSj: null,
        cNygxFdlZqDrSj: null,
        cNygxFdlZqLjSj: null,
        cNygxFdlGxjDrSj: null,
        cNygxFdlGxjLjSj: null,
        cNygxQtcYqDrSj: null,
        cNygxQtcYqLjSj: null,
        cNygxQtcDqDrSj: null,
        cNygxQtcDqLjSj: null,
        cNygxQtcYaqDrSj: null,
        cNygxQtcYaqLjSj: null,
        cState: null,
        remake: null,
        zfree1: null,
        zfree2: null,
        zfree3: null,
        zfree4: null,
        zfree5: null,
        zfree6: null,
        zfree7: null,
        zfree8: null,
        zfree9: null,
        zfree10: null,
        zfree11: null,
        zfree12: null,
        zfree13: null,
        zfree14: null,
        zfree15: null,
        zfree16: null,
        zfree17: null,
        zfree18: null,
        zfree19: null,
        zfree20: null
      };
      this.resetForm("form");
    },
    /** 搜索按钮操作 */
    handleQuery() {
      this.queryParams.pageNum = 1;
      this.getList();
    },
    /** 重置按钮操作 */
    resetQuery() {
      this.resetForm("queryForm");
      this.handleQuery();
    },
    // 多选框选中数据
    handleSelectionChange(selection) {
      this.ids = selection.map(item => item.cDate)
      this.single = selection.length!==1
      this.multiple = !selection.length
    },
    /** 新增按钮操作 */
    handleAdd() {
      this.reset();
      this.open = true;
      this.isInsert=true;
      this.title = "添加生产日报产量录入";
    },
    /** 修改按钮操作 */
    handleUpdate(row) {
      this.reset();
       this.isInsert=false;
      const cDate = row.cDate || this.ids
      getCl(cDate).then(response => {
        this.form = response.data;
        this.open = true;
        this.title = "修改生产日报产量录入";
      });
    },
    /** 提交按钮 */
    submitForm() {
      this.$refs["form"].validate(valid => {
        if (valid) {
          if (!this.isInsert) {
            updateCl(this.form).then(response => {
              this.$modal.msgSuccess("修改成功");
              this.open = false;
              this.getList();
            });
          } else {
            addCl(this.form).then(response => {
              this.$modal.msgSuccess("新增成功");
              this.open = false;
              this.getList();
            });
          }
        }
      });
    },
    /** 删除按钮操作 */
    handleDelete(row) {
      const cDates = row.cDate || this.ids;
      this.$modal.confirm('是否确认删除生产日报产量录入编号为"' + cDates + '"的数据项？').then(function() {
        return delCl(cDates);
      }).then(() => {
        this.getList();
        this.$modal.msgSuccess("删除成功");
      }).catch(() => {});
    },
    /** 导出按钮操作 */
    handleExport() {
      this.download('scrb/cl/export', {
        ...this.queryParams
      }, `cl_${new Date().getTime()}.xlsx`)
    }
  }
};
</script>
<style lang="scss" scoped>
  table
  {
    border-collapse: collapse;
    margin: 0 auto;
    text-align: center;
  }
  table td, table th
  {
    border: 1px solid #cad9ea;
    color: #666;
    height: 30px;
  }
  table thead th
  {
    background-color: #CCE8EB;
    width: 100px;
  }
  table tr:nth-child(odd)
  {
    background: #fff;
  }
  table tr:nth-child(even)
  {
    background: #F5FAFA;
  }
</style>

